package drh.test;

import java.util.List;

import drh.bean.Product;
import drh.dao.ProductDao;
import drh.dao.impl.ProductDaoImpl;

public class testProduct {
	static ProductDao dao = new ProductDaoImpl();
	public static void main(String[] args) {
		//getProductPaging();
		//dao.deleteProductById(656);
		dao.updateProduct(new Product(655,2,2,2,2,2,"2",2,2,"2008-08-08",2));
		//dao.addProduct(new Product(6,6,6,6,6,"6",6,6,"2009-09-09",6));
	}
	
	private static void getProductPaging() {
		List<Product> getProductPaging = dao.GetProductPaging(1,2);
		for (Product product : getProductPaging) {
			System.out.println( product );
		}
	} 
}


